package struts.com.fengbo.core.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import struts.com.fengbo.core.web.form.SubForm;

public class BaseAction extends DispatchAction {

	/*
	 * 测试表单提交是否能提交特殊字符
	 * (non-Javadoc)
	 * @see org.apache.struts.actions.DispatchAction#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	public ActionForward subfrm(ActionMapping mapping, ActionForm arg1,
			HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		System.out.println("parameter    测试结果。。。。"+request.getParameter("subtext"));
		
		SubForm form = (SubForm)arg1;
		System.out.println("actionfrm    测试结果。。。。"+form.getSubtext());
		return mapping.findForward("input");
	}
	
}
